﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace _42_Kicks
    /*Cette classe permet d'afficher des Sprites simples donc non animés
      Par exemple un décor, ou un projectile, ce genre de trucs*/
{
    class Sprite
    {
        public Rectangle position;
        Texture2D texture;

        public Sprite(Rectangle position)
        {
            this.position = position;
        }
        public Sprite(int x, int y, int z, int w)
        {
            position = new Rectangle(x, y,z,w);
        }
        public void LoadContent(ContentManager content, string assetName)
        {
            texture = content.Load<Texture2D>(assetName);
        }
       /* public void Update(Vector2 translation)
        {
            position += translation;

        }*/
        public void Draw(SpriteBatch spriteBatch, Color couleur)
        {
            spriteBatch.Draw(texture, position, couleur);
        }

    }
}
